﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using enqueteJwVd.DAL;

namespace enqueteJwVd.Services
{
    public class QuestionGroupService : IQuestionGroupService
    {
        private UnitOfWork unitOfWork;

        public QuestionGroupService()
        {
            unitOfWork = new UnitOfWork();
        }

        #region IQuestionGroupService Members
        public List<QuestionGroup> GetAllQuestionGroups()
        {
            return unitOfWork.QuestionGroupRepository.GetAll().ToList<QuestionGroup>();
        }
        #endregion

    }
}